package com.jDesireShop.dao.lucence;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.compass.core.Compass;
import org.compass.core.CompassTemplate;
import org.compass.spring.LocalCompassBean;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;


@Component("multiCompassTemplate")
public class MultiCompassTemplate extends org.compass.core.CompassTemplate implements ApplicationContextAware{
	private static final Log log = LogFactory.getLog(MultiCompassTemplate.class);
	private ApplicationContext applicationContext = null;
	@Autowired
	@Qualifier("compass")
	private Compass compass;
	
	public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
		this.applicationContext = applicationContext;
	}

	public Compass getCompass() {
		return compass;
	}

	public void setCompass(Compass compass) {
		this.compass = compass;
	}
	



}
